package com.yydream.dto;

import com.yydream.common.valid.AddGroup;
import com.yydream.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
public class SysCategoryDTO extends BaseDTO {

    @ApiModelProperty(name = "id")
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long id;

    @ApiModelProperty(name = "名称")
    @NotEmpty(message = "名称不能为空", groups = { AddGroup.class})
    private  String name;

    @ApiModelProperty(name = "描述")
    private String remark;

}
